home *** CD-ROM | disk | FTP | other *** search
/ PC Format Collection 21 / PC Format CD-ROM Collection 21 (1995-12)(Future Publishing)(GB)[issue 51].iso / resource / limits.h < prev    next >
C/C++ Source or Header  |  1990-11-24  |  972b  |  36 lines

  1. /*****************************************************************************
  2.  * LIMITS.H        Compiler datatype limits for Poco.
  3.  *
  4.  *                Note that because Poco currently lacks full support for 
  5.  *                unsigned datatypes, the unsigned MAX values are the same as  
  6.  *                the signed MAX values.
  7.  *
  8.  * 11/22/90        Created.
  9.  ****************************************************************************/
  10.  
  11. #ifndef __POCO__
  12. #error This LIMITS.H file is for use with POCO C only!
  13. #endif
  14.  
  15. #ifndef LIMITS_H
  16. #define LIMITS_H
  17.  
  18. #define MB_LEN_MAX  1
  19. #define CHAR_BITS    8
  20. #define CHAR_MAX    127
  21. #define CHAR_MIN    (-128)
  22. #define SCHAR_MAX   127
  23. #define SCHAR_MIN    (-128)
  24. #define UCHAR_MAX    127
  25. #define SHRT_MAX    32767 
  26. #define SHRT_MIN    (-32768)          
  27. #define USHRT_MAX    32767  
  28. #define INT_MAX        2147483647
  29. #define INT_MIN        (-2147483648)
  30. #define UINT_MAX    2147483647
  31. #define LONG_MAX    2147483647
  32. #define LONG_MIN    (-2147483648)
  33. #define ULONG_MAX    2147483647
  34.  
  35. #endif
  36.